# !usr/bin/env python
# -*- coding:utf-8 -*-
# @Author: cunyu1943
# @WeChat Official Account：村雨遥
# @Blog: cunyu1943.github.io
# @Github: https://github.com/cunyu1943
# @File: Issue1.py
# @Time: 2023/9/27 22:42

if __name__ == '__main__':
    count = 0
    for i in range(1, 5):
        for j in range(1, 5):
            for k in range(1, 5):
                if i != j and i != k and k != j:
                    print(i * 100 + j * 10 + k)
                    count += 1

    print("组成的数共有：%d 个" % count)
